package org.gaaidou.ptarmigan.springboot.core.async;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.util.concurrent.Executor;

class CompletableFuture<T> extends java.util.concurrent.CompletableFuture<T> {

    private final ThreadPoolTaskExecutor executor;

    public CompletableFuture(ThreadPoolTaskExecutor executor) {
        this.executor = executor;
    }

    @Override
    public Executor defaultExecutor() {
        return executor;
    }
}
